<!-- inc:head -->
<style type="text/css">
body
{
	background:#0F4C5E;
}
#admin_login
{
	position:relative;
	width:510px;
	margin:0 auto;
	height:156px;
	background:#0C5870;
	border:1px #05799E solid;
}
.f-left
{
	float:left;
	width:250px;
}
.f-right
{
	float:right;
	width:250px;
}
td
{
	color:#FFF;
}
</style>
<div style="height:150px;">&nbsp;</div>
<div id="admin_login">
	<div>
	<table width="100%">
	<tr>
		<td>
			<img src="images/login-logo.gif" border="0">
		</td>
		<td align="right" valign="top">
		</td>
	</tr>
	</table>
	</div>
	<div style="display:none;"><form action="admin.php?act=loginok" method="post" target="_top" onsubmit="return chklogin()"></div>
	<div>
		<div class="f-left">
			<table width="100%">
			<tr>
				<td width="80px" align="right">用户名：</td>
				<td><input name="username" id="username" type="text" style="width:135px;" tabindex="1" /></td>
			</tr>
			<tr>
				<td align="right">密　码：</td>
				<td><input name="password" id="password" type="password" style="width:135px;" tabindex="2" /></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="登录"> <input type="button" value="返回首页" onclick="tourl('index.php')"></td>
			</tr>
			</table>
		</div>
		<!-- if(function_exists("imagecreate") && $isCheckCode)-->
		<div class="f-right">
			<table>
			<tr>
				<td>验证码：</td>
				<td><input name="chk" id="chk" type="text" style="width:50px;" tabindex="3" /></td>
				<td id="updatecode"><img src="admin.php?act=chkcode" border="0" align="absmiddle" style="cursor:pointer;" onclick="qgupdatecode()"></td>
			</tr>
			</table>
		</div>
		<!-- end -->
		<div style="clear:both;height:0px;"></div>
	</div>
	<div style="display:none;"></form></div>
</div>

<script language="JavaScript">
function qgupdatecode()
{
	var rand = Math.random();
	$('updatecode').innerHTML = '<img src="admin.php?act=chkcode&rand=' + rand + '" border="0" align="absmiddle" style="cursor:pointer;" onclick="qgupdatecode()">';
}
function chklogin()
{
	var username = $("username").value;
	if(!username)
	{
		alert("管理员账号不能为空");
		$("username").focus();
		return false;
	}
	var password = $("password").value;
	if(!password)
	{
		alert("密码不允许为空");
		$("password").focus();
		return false;
	}
	//--------判断验证码是否为空
	{if(function_exists("imagecreate") && $isCheckCode)}
	var chk = $("chk").value;
	if(!chk)
	{
		alert("验证码不允许为空");
		$("chk").focus();
		return false;
	}
	{end}
}
</script>
<!-- inc:foot -->